Skip to content

[rig-claude] Improve Claude dynamic-workflow compatibility for rig - #361

Merged
pelikhan merged 1 commit into
mainfrom
rig-claude-compat/2026-08-06-948a8331c2f8c653
Aug 8, 2026
Merged

[rig-claude] Improve Claude dynamic-workflow compatibility for rig#361
pelikhan merged 1 commit into
mainfrom
rig-claude-compat/2026-08-06-948a8331c2f8c653

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Compatibility gap addressed

claude-workflow-conversion.md — the primary reference for porting Claude Code dynamic workflow scripts to rig — did not document the "rig/globals" incremental migration path. A developer porting a flat script (with top-level phase, call, pipeline calls) had no clear guide in the conversion reference, only a brief mention buried in dynamic-workflows.md.

Why this improves transfer

Claude dynamic workflows are flat scripts: phase(), log(), and await agent(prompt, { schema }) appear at the module top level with no wrapping body. The natural first step when porting is to keep that flat structure and swap the injected globals for imports — call/pipeline from "rig/globals", phase/log from "rig". Without this documented in the conversion guide, developers either miss the pattern entirely or must infer it from a prose aside in a different reference file.

The added section names "rig/globals" explicitly, shows a minimal working example, and explains when to graduate to workflow({ body }).

Files changed

  • skills/rig/references/claude-workflow-conversion.md
    • New "Incremental migration with rig/globals" section with a short ts example showing the flat-module porting pattern
    • Added 360-parallel-branch-analysis-workflow.md to the example table (parallel(thunks) barrier pattern was missing from the cross-reference)

Validation

Docs-only change. No TypeScript or sample files modified; no build or test run required per task rules. Verified:

  • Referenced sample 360-parallel-branch-analysis-workflow.md exists
  • All relative links in the updated file resolve to existing files
  • File grew from 171 to 204 lines (within the ~200-line guidance target)

Remaining intentional differences

  • { effort: "high" } remains "not modeled" — rig has no effort parameter; encode importance via model choice or prompt structure
  • { agentType: "Explore" } remains "prompt wording" — no built-in read-only agent type
  • No resume journal, worktree isolation, or human checkpoints — runtime features of Claude Code, not rig API surface

Generated by Daily Rig Claude Dynamic Workflow Compatibility · sonnet46 95.7 AIC · ⌖ 8.13 AIC · ⊞ 5.4K ·

…le link

Close the discoverability gap in claude-workflow-conversion.md:
- Add 'Incremental migration with rig/globals' section showing the flat-module
  porting pattern (import call/pipeline from rig/globals at top level)
- Add sample 360-parallel-branch-analysis-workflow.md to the example table
  so parallel(thunks) barrier usage is cross-referenced from the conversion guide

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review August 8, 2026 18:46
@pelikhan
pelikhan merged commit 4a8dfa2 into main Aug 8, 2026
1 check passed
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skills-Based Review 🧠

Applied /grill-with-docs — approving with one minor prose-code mismatch noted.

📋 Key Themes & Highlights

Finding

  • Prose/code mismatch: Line 158 lists parallel as a third import from "rig/globals", but the code example on line 164 only imports call and pipeline. Minor, but worth fixing to keep the guide trustworthy as a reference.

Positive Highlights

  • ✅ The new section fills a genuine gap: flat-module porting pattern was undocumented in the conversion guide
  • ✅ Clear graduation advice ("rig/globals" is a stepping stone, not a final form) sets correct expectations
  • ✅ Sample 360 cross-reference correctly points to the parallel(thunks) barrier pattern
  • ✅ File stays within the ~200-line guidance target (171 → 204 lines)

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · sonnet46 25 AIC · ⌖ 4.12 AIC · ⊞ 6.3K
Comment /matt to run again


```ts
import { agent, phase, log, s } from "rig";
import { call, pipeline } from "rig/globals";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/grill-with-docs] The prose (line 158) mentions parallel as one of three imports, but the code example only imports call and pipelineparallel is absent from both the import and the example body.

Either drop parallel from the prose to match the example, or add it to the import and show a usage so the claim matches the code.

💡 Minimal fix — drop from prose
-`call`, `pipeline`, and `parallel` from `"rig/globals"` instead of
+`call` and `pipeline` from `"rig/globals"` instead of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant